﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace HowItWentDown
{
    class PickUp : Obj
    {
        public float bounce = 0.4f;
        public float friction = 0.05f;
        public PickUp(Game1 doc, float X, float Y, float Z, Texture2D Tex)
            : base(doc, X, Y, Z, Tex, false, true, false, true)
        {
            gravity = 0.05f;
        }
        public override void Update()
        {
            if (y < 0)
            {
                y = 0;
                velocity.Y *= -bounce;
                velocity.X *= friction;
                velocity.Z *= friction;
            }
            base.Update();
        }

    }
}
